<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('网站图片列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p>菜单编号：</p>
                                <input type="text" name="menuId"/>
                            </li>
                            <li>
                                <p>图片编号：</p>
                                <input type="text" name="pictureId"/>
                            </li>
                            <li>
                                <p>父图片ID：</p>
                                <input type="text" name="parentId"/>
                            </li>
                            <li>
                                <p>父图片名称：</p>
                                <input type="text" name="parentName"/>
                            </li>
                            <li>
                                <p>页面编号：</p>
                                <input type="text" name="pageId"/>
                            </li>
                            <li>
                                <p>页面名称：</p>
                                <input type="text" name="pageName"/>
                            </li>
                            <li>
                                <p>组件编号：</p>
                                <input type="text" name="componentId"/>
                            </li>
                            <li>
                                <p>组件名称：</p>
                                <input type="text" name="componentName"/>
                            </li>
                            <li>
                                <p>图片名称：</p>
                                <input type="text" name="pictureName"/>
                            </li>
                            <li>
                                <p>图片描述：</p>
                                <input type="text" name="pictureDesc"/>
                            </li>
                            <li>
                                <p>图片简介：</p>
                                <input type="text" name="pictureBrief"/>
                            </li>
                            <li>
                                <p>图片内容：</p>
                                <input type="text" name="pictureContent"/>
                            </li>
                            <li>
                                <p>图片类型：</p>
                                <select name="pictureType" th:with="type=${@dict.getType('')}">
                                    <option value="">所有</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <p>类型名称：</p>
                                <input type="text" name="typeName"/>
                            </li>
                            <li>
                                <p>图片路径：</p>
                                <input type="text" name="picturePath"/>
                            </li>
                            <li>
                                <p>图片链接：</p>
                                <input type="text" name="pictureUrl"/>
                            </li>
                            <li>
                                <p>临时路径：</p>
                                <input type="text" name="hotPath"/>
                            </li>
                            <li>
                                <p>图片副标题：</p>
                                <input type="text" name="pictureSubtitle"/>
                            </li>
                            <li>
                                <p>图片作者：</p>
                                <input type="text" name="pictureAuthor"/>
                            </li>
                            <li>
                                <p>图片来源：</p>
                                <input type="text" name="pictureSource"/>
                            </li>
                            <li>
                                <p>图片排序：</p>
                                <input type="text" name="pictureSort"/>
                            </li>
                            <li>
                                <p>图片背景：</p>
                                <input type="text" name="pictureBack"/>
                            </li>
                            <li>
                                <p>图片发布者：</p>
                                <input type="text" name="pictureRelease"/>
                            </li>
                            <li>
                                <p>图片置顶：</p>
                                <input type="text" name="pictureTop"/>
                            </li>
                            <li>
                                <p>图片推荐：</p>
                                <input type="text" name="pictureHot"/>
                            </li>
                            <li>
                                <p>首页显示：</p>
                                <input type="text" name="pictureIndex"/>
                            </li>
                            <li>
                                <p>链接名称：</p>
                                <input type="text" name="linkName"/>
                            </li>
                            <li>
                                <p>外链地址：</p>
                                <input type="text" name="linkUrl"/>
                            </li>
                            <li class="select-time">
                                <p>发布时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginReleaseTime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endReleaseTime]"/>
                            </li>
                            <li>
                                <p>发布时间：</p>
                                <input type="text" name="relativePicture"/>
                            </li>
                            <li>
                                <p>图片标记：</p>
                                <input type="text" name="pictureFlag"/>
                            </li>
                            <li class="select-time">
                                <p>创建时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCreatedTime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCreatedTime]"/>
                            </li>
                            <li class="select-time">
                                <p>修改时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginUpdatedTime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endUpdatedTime]"/>
                            </li>
                            <li class="select-time">
                                <p>删除时间：</p>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginDeletedTime]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endDeletedTime]"/>
                            </li>
                            <li>
                                <p>创建者：</p>
                                <input type="text" name="createdBy"/>
                            </li>
                            <li>
                                <p>修改者：</p>
                                <input type="text" name="updatedBy"/>
                            </li>
                            <li>
                                <p>删除者：</p>
                                <input type="text" name="deletedBy"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="bajiaostar:jbhWepicture:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="bajiaostar:jbhWepicture:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="bajiaostar:jbhWepicture:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="bajiaostar:jbhWepicture:export">
                    <i class="fa fa-download"></i> 导出
                 </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table" data-mobile-responsive="true"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('bajiaostar:jbhWepicture:edit')}]];
        var removeFlag = [[${@permission.hasPermi('bajiaostar:jbhWepicture:remove')}]];
        var prefix = ctx + "bajiaostar/jbhWepicture";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "网站图片",
                columns: [{
                    checkbox: true
                },
                {
                    field : 'id', 
                    title : '自动编号',
                    visible: false
                },
                {
                    field : 'menuId', 
                    title : '菜单编号'
                },
                {
                    field : 'pictureId', 
                    title : '图片编号'
                },
                {
                    field : 'parentId', 
                    title : '父图片ID'
                },
                {
                    field : 'parentName', 
                    title : '父图片名称'
                },
                {
                    field : 'pageId', 
                    title : '页面编号'
                },
                {
                    field : 'pageName', 
                    title : '页面名称'
                },
                {
                    field : 'componentId', 
                    title : '组件编号'
                },
                {
                    field : 'componentName', 
                    title : '组件名称'
                },
                {
                    field : 'pictureName', 
                    title : '图片名称'
                },
                {
                    field : 'pictureDesc', 
                    title : '图片描述'
                },
                {
                    field : 'pictureTitle', 
                    title : '图片标题'
                },
                {
                    field : 'pictureBrief', 
                    title : '图片简介'
                },
                {
                    field : 'pictureContent', 
                    title : '图片内容'
                },
                {
                    field : 'pictureType', 
                    title : '图片类型'
                },
                {
                    field : 'typeName', 
                    title : '类型名称'
                },
                {
                    field : 'picturePath', 
                    title : '图片路径'
                },
                {
                    field : 'pictureUrl', 
                    title : '图片链接'
                },
                {
                    field : 'hotPath', 
                    title : '临时路径'
                },
                {
                    field : 'pictureSubtitle', 
                    title : '图片副标题'
                },
                {
                    field : 'pictureAuthor', 
                    title : '图片作者'
                },
                {
                    field : 'pictureSource', 
                    title : '图片来源'
                },
                {
                    field : 'pictureSort', 
                    title : '图片排序'
                },
                {
                    field : 'pictureBack', 
                    title : '图片背景'
                },
                {
                    field : 'pictureRelease', 
                    title : '图片发布者'
                },
                {
                    field : 'pictureTop', 
                    title : '图片置顶'
                },
                {
                    field : 'pictureHot', 
                    title : '图片推荐'
                },
                {
                    field : 'pictureIndex', 
                    title : '首页显示'
                },
                {
                    field : 'linkName', 
                    title : '链接名称'
                },
                {
                    field : 'linkUrl', 
                    title : '外链地址'
                },
                {
                    field : 'releaseTime', 
                    title : '发布时间'
                },
                {
                    field : 'relativePicture', 
                    title : '发布时间'
                },
                {
                    field : 'pictureFlag', 
                    title : '图片标记'
                },
                {
                    field : 'extend', 
                    title : '扩展字段'
                },
                {
                    field : 'remark', 
                    title : '备注'
                },
                {
                    field : 'createdTime', 
                    title : '创建时间'
                },
                {
                    field : 'updatedTime', 
                    title : '修改时间'
                },
                {
                    field : 'deletedTime', 
                    title : '删除时间'
                },
                {
                    field : 'createdBy', 
                    title : '创建者'
                },
                {
                    field : 'updatedBy', 
                    title : '修改者'
                },
                {
                    field : 'deletedBy', 
                    title : '删除者'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>